<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php $this->pageTitle="iPad版本设置"; ?>
<div class="icon32" id="icon-users"><br>
</div>
<h2>iPad版本设置</h2>

<div class="form"><?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'ipad-form',
    'enableAjaxValidation'=>false,
    'htmlOptions'=>array('enctype'=>'multipart/form-data'),
)); ?> <?php echo $form->errorSummary($model); ?>
<table class="form-table">

	<tr class="form-field form-required">
		<td><a href="/index.php?r=adminSettingPanel/retrieveIpadLogo"
			name="reset" id="reset" class="button-primary" style="width: 80px">恢复默认设置</a></td>
	</tr>

	<?php foreach($data as $key=>$value){ ?>

	<tr class="form-field form-required">
		<td style='width:50%'><span class="description"><?php echo $value[0]; ?> 像素:768*1024</span><br></td>
		<td><?php echo $form->FileField($model, $key); ?><div class="row buttons"><?php echo CHtml::submitButton('上传',array('class'=>'button-primary','style'=>'width:100px')); ?></div></td>
	</tr>
	<tr class="form-field form-required">
		<td><img style="width: 30%; height: 20%;"
			src="<?php echo Yii::app()->request->baseUrl.$value[1]; ?>"></td>
	</tr>
	<tr class="form-field form-required">
		<td><div style="widht:10%;height:1px;background: #FF0000;"></div></td>
	</tr>
	<?php } ?>
</table>

	<?php $this->endWidget(); ?></div>
